﻿<%@ Page Title="Login" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" 
    CodeBehind="Login.aspx.cs" Inherits="AmkeniCrossLoginApplication.Account.Login" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <div style="text-align:center;">
        <div style="width:50%; margin-left:auto; margin-right:auto; text-align:left;">
            <h2>
                Login
            </h2>
            <br /><br />
            <asp:Table ID="Table1" runat="server" style="width:500px;">
                <asp:TableRow>
                    <asp:TableCell>
                        <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="Username" Text="Username:"></asp:Label>
                    </asp:TableCell>
                    <asp:TableCell>
                        <asp:TextBox ID="Username" runat="server" CssClass="textEntry"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="UsernameValidator" runat="server" 
                            ErrorMessage="*" ControlToValidate="Username" ForeColor="Red"></asp:RequiredFieldValidator>
                    </asp:TableCell>
                </asp:TableRow>
                <asp:TableRow>
                    <asp:TableCell></asp:TableCell>
                    <asp:TableCell>
                        <asp:RegularExpressionValidator ID="EmailValidator" runat="server" 
                            ErrorMessage="Use your Email Address" ForeColor="Red" 
                            ControlToValidate="Username" 
                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                    </asp:TableCell>
                </asp:TableRow>
                <asp:TableRow>
                    <asp:TableCell>
                        <asp:Label ID="PassWordLabel" runat="server" AssociatedControlID="Password" Text="Password:"></asp:Label>
                    </asp:TableCell>
                    <asp:TableCell>
                        <asp:TextBox ID="Password" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="PasswordValidator" runat="server" 
                            ErrorMessage="*" ControlToValidate="Password" ForeColor="Red">
                            </asp:RequiredFieldValidator>
                    </asp:TableCell>
                </asp:TableRow>
                <asp:TableRow>
                    <asp:TableCell style="padding-top:21px;">
                        <asp:Label ID="Label1" runat="server" Text="Remember me:"></asp:Label>
                    </asp:TableCell>
                    <asp:TableCell style="padding-top:19px;">
                        <div style="float:left; padding-top:5px;">
                            <asp:CheckBox ID="PersistCookie" runat="server" AutoPostBack="false" />
                        </div>
                        <div style="float:right; padding-right:70px;">
                            <asp:Button ID="LogInButton" runat="server" Text="Login" OnClick="LogInButton_Click" />
                        </div>
                    </asp:TableCell>
                </asp:TableRow>
                <asp:TableRow>
                    <asp:TableCell style="padding-top:21px;">
                        <asp:LinkButton ID="ForgotButton" runat="server" ForeColor="#0055cc" 
                        OnClick="ForgotButton_Click" CausesValidation="false">
                            Forgot Password?
                        </asp:LinkButton>
                    </asp:TableCell>
                    <asp:TableCell></asp:TableCell>
                </asp:TableRow>
            </asp:Table>  
            <br />
            <asp:Label ID="Error" runat="server" Visible="false" ForeColor="Red"></asp:Label>
        </div>
    </div>

</asp:Content>
